package com.keba.lamp.complaint.vo.result;

import cn.hutool.core.map.MapUtil;
import com.keba.basic.annotation.echo.Echo;
import com.keba.basic.base.entity.Entity;
import com.keba.basic.interfaces.echo.EchoVO;
import com.keba.lamp.model.constant.EchoApi;
import com.keba.lamp.model.constant.EchoDictType;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 表单查询方法返回值VO
 * 文书模版
 * </p>
 *
 * @author twg
 * @date 2025-07-09 15:45:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@Schema(description = "文书模版")
public class DocTemplateResultVO extends Entity<Long> implements Serializable, EchoVO {

    private static final long serialVersionUID = 1L;

    @Builder.Default
    private Map<String, Object> echoMap = MapUtil.newHashMap();

    @Schema(description = "主键")
    private Long id;

    private Integer revision;

    /**
    * 是否删除，0-未删除，1-删除
    */
    @Schema(description = "是否删除，0-未删除，1-删除")
    private Integer isDel;
    /**
    * 唯一标识字符串
    */
    @Schema(description = "唯一标识字符串")
    private String code;
    /**
    * 模版名称
    */
    @Schema(description = "模版名称")
    private String name;
    /**
    * 文书类型 [01立案文书、02律师函]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TYPE)
    */
    @Schema(description = "文书类型 [01立案文书、02律师函]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TYPE)")
    @Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TYPE)
    private String docType;
    /**
    * 文书模版类型 [01送达地址、02银行结算确认书]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TEMPLATE_TYPE)
    */
    @Schema(description = "文书模版类型 [01送达地址、02银行结算确认书]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TEMPLATE_TYPE)")
    @Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.DOC_TEMPLATE_TYPE)
    private String docTemplateType;
    /**
    * 【多选】适用当事人0-原告，1-被告
    */
    @Schema(description = "【多选】适用当事人0-原告，1-被告")
    private String applyParty;
    /**
    * 当事人类型（0-自然人，1-企业法人）
    */
    @Schema(description = "当事人类型（0-自然人，1-企业法人）")
    private Integer partyType;
    /**
     * 关联的文档模板id
     */
    @Schema(description = "关联的文档模板id")
    private String parentDocTemplateId;

    @Echo(api = EchoApi.BASE_EMPLOYEE_SERVICE_IMPL_CLASS)
    private Long createdBy;

    private String areaName;

    @Schema(description = "区域id")
    private List<Long> areaIds;


    private Long caseId;

    @Schema(description = "原告id/被告id")
    private Long caseUserId;

    private Boolean editStatus;

    @Schema(description = "appid")
    private String appId;

    @Schema(description = "文件ID")
    private Long comFileId;



}
